﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminAccounts.aspx.cs" Inherits="TeamNitro.AdminAccounts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentHolder" runat="server">
<style type="text/css">
        .style1
        {
            height: 20px;
        }
        .style2
        {
            width: 40px;
        }
        .style3
        {
            height: 20px;
            width: 40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="server">
<table style="width:100%;">
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <h2>
                    Student</h2>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
        <asp:Label ID="lblStudent" runat="server" ForeColor="#FF3300" 
            Text="No Data in Student Table" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
    <asp:GridView ID="GridView1" runat="server" 
        BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
        CellPadding="4" CellSpacing="2" 
        DataSourceID="ObjectDataSource1" AllowSorting="True" 
        AutoGenerateColumns="False" DataKeyNames="StudentID" AllowPaging="True" 
        onrowdeleted="GridView1_RowDeleted" ForeColor="Black">

<SortedAscendingCellStyle BackColor="#F1F1F1"></SortedAscendingCellStyle>

<SortedAscendingHeaderStyle BackColor="#808080"></SortedAscendingHeaderStyle>

<SortedDescendingCellStyle BackColor="#CAC9C9"></SortedDescendingCellStyle>

<SortedDescendingHeaderStyle BackColor="#383838"></SortedDescendingHeaderStyle>
        <Columns>
            <asp:CommandField ShowDeleteButton="True" 
                ShowEditButton="True" />
            <asp:ButtonField CommandName="Select" DataTextField="StudentID" 
                HeaderText="Student ID" SortExpression="StudentID" Text="Button" />
            <asp:TemplateField HeaderText="Student Name" SortExpression="StudentName">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStuName" runat="server" Text='<%# Bind("StudentName") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStuName" runat="server" 
                        ControlToValidate="tbxStuName" ErrorMessage="Required User Name" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("StudentName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Password" SortExpression="Password">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStuPassword" runat="server" Text='<%# Bind("Password") %>' 
                        TextMode="Password"></asp:TextBox>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server">*****</asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Contact Number" SortExpression="ContactNumber">
                <EditItemTemplate>
                    <asp:RegularExpressionValidator ID="revStuContact" runat="server" 
                        ControlToValidate="tbxStuContact" ErrorMessage="   Please Only Enter &quot;8&quot; Digits" 
                        ForeColor="#FF3300" ValidationExpression="[0-9]{8}"></asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbxStuContact" runat="server" 
                        Text='<%# Bind("ContactNumber") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStuContact" runat="server" 
                        ControlToValidate="tbxStuContact" ErrorMessage="Required Contact Number" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("ContactNumber") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Address" SortExpression="Address">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStuAddress" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStuAddress" runat="server" 
                        ControlToValidate="tbxStuAddress" ErrorMessage="Required Address" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email" SortExpression="Email">
                <EditItemTemplate>
                    <asp:RegularExpressionValidator ID="rexStuEmail" runat="server" 
                        ControlToValidate="tbxStuEmail" ErrorMessage="RegularExpressionValidator" 
                        ForeColor="#FF3300" 
                        ValidationExpression="[0-9]{7}[A-Za-z]+@([\w-]+\.)+([\w-]+\.)+([\w-]+\.)+[\w-]+">Enter Valid Email Address(e.g. 1234567A@student.tp.edu.sg)</asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbxStuEmail" runat="server" Text='<%# Bind("Email") %>' 
                        Width="200px"></asp:TextBox>
                    &nbsp;<br />
                    <asp:RequiredFieldValidator ID="rfvSuEmail" runat="server" 
                        ControlToValidate="tbxStuEmail" ErrorMessage="Required Email" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label8" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Current Year" SortExpression="CurrentYear">
                <EditItemTemplate>
                    <br />
                    <asp:DropDownList ID="ddlStuYear" runat="server" 
                        SelectedValue='<%# Bind("CurrentYear") %>'>
                        <asp:ListItem>Freshmen</asp:ListItem>
                        <asp:ListItem>Junior</asp:ListItem>
                        <asp:ListItem>Senior</asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("CurrentYear") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Current Semester" SortExpression="CurrentSem">
                <EditItemTemplate>
                    <br />
                    <asp:DropDownList ID="ddlStuSem" runat="server" 
                        SelectedValue='<%# Bind("CurrentSem") %>'>
                        <asp:ListItem>1.1</asp:ListItem>
                        <asp:ListItem>1.2</asp:ListItem>
                        <asp:ListItem>2.1</asp:ListItem>
                        <asp:ListItem>2.2</asp:ListItem>
                        <asp:ListItem>3.1</asp:ListItem>
                        <asp:ListItem Value="3.2"></asp:ListItem>
                        <asp:ListItem>4.1</asp:ListItem>
                        <asp:ListItem>4.2</asp:ListItem>
                        <asp:ListItem>5.1</asp:ListItem>
                        <asp:ListItem>5.2</asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("CurrentSem") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="School" SortExpression="School">
                <EditItemTemplate>
                    <br />
                    <asp:DropDownList ID="ddlStuSchool" runat="server" 
                        SelectedValue='<%# Bind("School") %>'>
                        <asp:ListItem>School of Informatics and IT</asp:ListItem>
                        <asp:ListItem>School of Applied Science</asp:ListItem>
                        <asp:ListItem>School of Business</asp:ListItem>
                        <asp:ListItem>School of Design</asp:ListItem>
                        <asp:ListItem>School of Engineering</asp:ListItem>
                        <asp:ListItem>School of Humanities and Social Sciences</asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("School") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Course Name" SortExpression="CourseName">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStuCourseName" runat="server" 
                        Text='<%# Bind("CourseName") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStuCourseName" runat="server" 
                        ControlToValidate="tbxStuCourseName" ErrorMessage="Required Course Name" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label9" runat="server" Text='<%# Bind("CourseName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Course Code" SortExpression="CourseCode">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStuCourseCode" runat="server" 
                        Text='<%# Bind("CourseCode") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStuCourseCode" runat="server" 
                        ControlToValidate="tbxStuCourseCode" ErrorMessage="Required Course Code" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label10" runat="server" Text='<%# Bind("CourseCode") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="Black" HorizontalAlign="Left" BackColor="#CCCCCC" />
        <RowStyle BackColor="White" />
        <SelectedRowStyle BackColor="#00CC00" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />

    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
                <h2>
                    Staff</h2>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
        <asp:Label ID="lblStaff" runat="server" ForeColor="#FF3300" 
            Text="No Data in Staff Table" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
    <asp:GridView ID="GridView2" runat="server" DataSourceID="ObjectDataSource2" 
        BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
        CellPadding="4" CellSpacing="2" AllowSorting="True" 
        AutoGenerateColumns="False" DataKeyNames="StaffID" AllowPaging="True" 
        onrowdeleted="GridView2_RowDeleted" ForeColor="Black">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:ButtonField CommandName="Select" DataTextField="StaffID" 
                HeaderText="Staff ID" SortExpression="StaffID" Text="Button" />
            <asp:TemplateField HeaderText="Staff Name" SortExpression="StaffName">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStaffName" runat="server" Text='<%# Bind("StaffName") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStaffName" runat="server" 
                        ControlToValidate="tbxStaffName" ErrorMessage="Required User Name" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label11" runat="server" Text='<%# Bind("StaffName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Password" SortExpression="Password">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStaffPassword" runat="server" Text='<%# Bind("Password") %>' 
                        TextMode="Password"></asp:TextBox>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label12" runat="server" Text="*****"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Contact Number" SortExpression="ContactNumber">
                <EditItemTemplate>
                    <asp:RegularExpressionValidator ID="revStaffContact" runat="server" 
                        ControlToValidate="tbxStaffContact" ErrorMessage="Please Only Enter &quot;8&quot; Digits" 
                        ForeColor="#FF3300" ValidationExpression="[0-9]{8}"></asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbxStaffContact" runat="server" 
                        Text='<%# Bind("ContactNumber") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStaffContact" runat="server" 
                        ControlToValidate="tbxStaffContact" ErrorMessage="Required Contact Number" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label13" runat="server" Text='<%# Bind("ContactNumber") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Address" SortExpression="Address">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStaffAddress" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStaffAddress" runat="server" 
                        ControlToValidate="tbxStaffAddress" ErrorMessage="Required Address" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label14" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email" SortExpression="Email">
                <EditItemTemplate>
                    <asp:RegularExpressionValidator ID="rexStaffEmail" runat="server" 
                        ControlToValidate="tbxStaffEmail" ErrorMessage="RegularExpressionValidator" 
                        ForeColor="#FF3300" 
                        ValidationExpression="[0-9]{6}[A-Za-z]+@([\w-]+\.)+([\w-]+\.)+([\w-]+\.)+[\w-]+">Enter Valid Email Address (e.g. 123456A@staff.tp.edu.sg)</asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbxStaffEmail" runat="server" Text='<%# Bind("Email") %>' 
                        Width="310px"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStaffEmail" runat="server" 
                        ControlToValidate="tbxStaffEmail" ErrorMessage="Required Email" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label15" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Position" SortExpression="Position">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxStaffPosition" runat="server" 
                        Text='<%# Bind("Position") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvStaffPosition" runat="server" 
                        ControlToValidate="tbxStaffPosition" ErrorMessage="Requierd Position" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label16" runat="server" Text='<%# Bind("Position") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="School" SortExpression="School">
                <EditItemTemplate>
                    <br />
                    <asp:DropDownList ID="ddlStaffSchool" runat="server" 
                        SelectedValue='<%# Bind("School") %>'>
                        <asp:ListItem>School of Informatics and IT</asp:ListItem>
                        <asp:ListItem>School of Applied Science</asp:ListItem>
                        <asp:ListItem>School of Business</asp:ListItem>
                        <asp:ListItem>School of Design</asp:ListItem>
                        <asp:ListItem>School of Engineering</asp:ListItem>
                        <asp:ListItem>School of Humanities and Social Sciences</asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label17" runat="server" Text='<%# Bind("School") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="Black" HorizontalAlign="Left" BackColor="#CCCCCC" />
        <RowStyle BackColor="White" />
        <SelectedRowStyle BackColor="#00CC00" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
                <h2>
                    Admin</h2>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
        <asp:Label ID="lblAdmin" runat="server" ForeColor="#FF3300" 
            Text="No Data in Admin Table" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
            </td>
            <td class="style1">
    <asp:GridView ID="GridView3" runat="server" DataSourceID="ObjectDataSource3" 
        BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
        CellPadding="4" CellSpacing="2" AllowSorting="True" 
        AutoGenerateColumns="False" DataKeyNames="AdminID" AllowPaging="True" 
        onrowdeleted="GridView3_RowDeleted" ForeColor="Black">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:ButtonField CommandName="Select" DataTextField="AdminID" 
                HeaderText="Admin ID" SortExpression="AdminID" Text="Button" />
            <asp:TemplateField HeaderText="Admin Name" SortExpression="AdminName">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxAdminName" runat="server" Text='<%# Bind("AdminName") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvAdminName" runat="server" 
                        ControlToValidate="tbxAdminName" ErrorMessage="Required User Name" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label18" runat="server" Text='<%# Bind("AdminName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Password" SortExpression="Password">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxAdminPassword" runat="server" Text='<%# Bind("Password") %>' 
                        TextMode="Password"></asp:TextBox>
                    <br />
                    &nbsp;
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label19" runat="server" Text="*****"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Contact Number" SortExpression="ContactNumber">
                <EditItemTemplate>
                    <asp:RegularExpressionValidator ID="rexAdminContact" runat="server" 
                        ControlToValidate="tbxAdminContact" ErrorMessage="Please Only Enter &quot;8&quot; Digits" 
                        ForeColor="#FF3300" ValidationExpression="[0-9]{8}"></asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbxAdminContact" runat="server" 
                        Text='<%# Bind("ContactNumber") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="fvAdminContact" runat="server" 
                        ControlToValidate="tbxAdminContact" ErrorMessage="Required Contact Number" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label20" runat="server" Text='<%# Bind("ContactNumber") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Address" SortExpression="Address">
                <EditItemTemplate>
                    <br />
                    <asp:TextBox ID="tbxAdminAddress" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvAdminAddress" runat="server" 
                        ControlToValidate="tbxAdminAddress" ErrorMessage="Required Address" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label21" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email" SortExpression="Email">
                <EditItemTemplate>
                    <asp:RegularExpressionValidator ID="rexAdminEmail" runat="server" 
                        ControlToValidate="tbxAdminEmail" ErrorMessage="RegularExpressionValidator" 
                        ForeColor="#FF3300" ValidationExpression="[\w-]+@([\w-]+\.)+[\w-]+">Enter Valid Email Address (e.g. admin@gmail.com)</asp:RegularExpressionValidator>
                    <br />
                    <asp:TextBox ID="tbxAdminEmail" runat="server" Text='<%# Bind("Email") %>' 
                        Width="310px"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="rfvAdminEmail" runat="server" 
                        ControlToValidate="tbxAdminEmail" ErrorMessage="Required Email" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label22" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="Black" HorizontalAlign="Left" BackColor="#CCCCCC" />
        <RowStyle BackColor="White" />
        <SelectedRowStyle BackColor="#00CC00" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td class="style1">
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetStudent" TypeName="TeamNitro.DBManager" 
        DataObjectTypeName="TeamNitro.DBManager" UpdateMethod="UpdateStudent" 
        DeleteMethod="DeleteStudent">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
        SelectMethod="GetStaff" TypeName="TeamNitro.DBManager" 
        DataObjectTypeName="TeamNitro.DBManager" UpdateMethod="UpdateStaff" 
        DeleteMethod="DeleteStaff">
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
        SelectMethod="GetAdmin" TypeName="TeamNitro.DBManager" 
        DataObjectTypeName="TeamNitro.DBManager" UpdateMethod="UpdateAdmin" 
        DeleteMethod="DeleteAdmin">
    </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
